﻿<UserControl
    x:Class="BuildARoute.Controls.TourControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="310" d:DesignWidth="401">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition  />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button Grid.Row="1" Content="Edit" Height="32" HorizontalAlignment="Right"  Name="editButton" VerticalAlignment="Top" Width="75" Style="{StaticResource RegisterLoginButtonStyle}" Margin="0,1,12,0" Click="editButton_Click" />
        <StackPanel Height="231" HorizontalAlignment="Left" Margin="12,12,0,0" Name="stackPanel1" VerticalAlignment="Top" Width="344">
            <TextBlock Height="23" Name="titleTextBlock" Text="{Binding Title}" Style="{StaticResource WelcomeTextStyle}" />
            <TextBlock Height="17" Name="shortDescriptionTextBlock" Text="{Binding Path=ShortDescription}" Style="{StaticResource CommentStyle}" Width="342" Margin="3,0,-1,0" />
            <TextBlock Height="163" Name="longDescriptionTextBlock" Text="{Binding Path=LongDescription}" Style="{StaticResource ContentTextStyle}" Width="344" />
            <StackPanel Height="27" Name="stackPanel2" Width="343" Orientation="Horizontal">
                <TextBlock Height="23" Name="createdTextBlock" Text="{Binding Path=CreateDate }" Style="{StaticResource LoginTextStyle}" Width="99" />
                <TextBlock Height="23" Name="durationTextBlock" Text="{Binding Path=Duration}" Width="93" Style="{StaticResource LoginTextStyle}" />
            </StackPanel>
        </StackPanel>
        <Button Content="View Stops" Grid.Row="1" Height="32" HorizontalAlignment="Left" Margin="168,0,0,0" Name="viewStopsButton" VerticalAlignment="Top" Width="139" Style="{StaticResource RegisterLoginButtonStyle}" />
    </Grid>
    
</UserControl>
